package com.cpit.qualitycontrol.dao;

import com.cpit.qualitycontrol.entity.SubTaskImage;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by xxx on 2017/10/1.
 */
public interface SubTaskImageCrudRepository extends JpaRepository<SubTaskImage, Long> {

    List<SubTaskImage> findAllBySubTaskIdOrderByUpdateTimeAsc(Long subTaskId);

    List<SubTaskImage> findAllBySubTaskIdOrderBySubImageIdAsc(Long subTaskId);
}
